/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lab6ObserverProfe;

import java.util.Observable;

/**
 *
 * @author Instructor
 */
class EventoInhabilitacionTarjetaCredito extends Observable{
    private final TarjetaCredito tc;

    EventoInhabilitacionTarjetaCredito(TarjetaCredito tc) {
        this.tc = tc;
    }

    void notificarInhabilitacion() {
        setChanged();
        notifyObservers(this.tc);
    }

}
